package com.gxuwz.entity;

import java.util.Set;

import javax.persistence.*;

/**
 * 部门实体
 * @author 小胡  
 * @date 2017年5月28日
 */
@Entity
@Table(name = "sys_department")
public class SysDepartment extends BaseEntity{

	private static final long serialVersionUID = 8301544595669207546L;

	@Column(name = "dept_name")
	private String deptName; // 部门名称
	@Column(name = "dept_desc")
	private String deptDesc; // 部门描述
	@Column(name = "dept_create_date")
	private String createDate; // 创建日期
	@Column(name = "department_create_user_name")
	private String createUserName; // 创建该角色的用户ID
	@OneToMany(mappedBy="department",cascade = {CascadeType.MERGE, CascadeType.PERSIST,
			CascadeType.REFRESH})
	private Set<SysLaboratory> laboratorys;  

	public SysDepartment() {
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getDeptDesc() {
		return deptDesc;
	}

	public void setDeptDesc(String deptDesc) {
		this.deptDesc = deptDesc;
	}

	public String getCreateDate() {
		return createDate;
	}

	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}

	public String getCreateUserName() {
		return createUserName;
	}

	public void setCreateUserName(String createUserName) {
		this.createUserName = createUserName;
	}

	public Set<SysLaboratory> getLaboratorys() {
		return laboratorys;
	}

	public void setLaboratorys(Set<SysLaboratory> laboratorys) {
		this.laboratorys = laboratorys;
	}
	

}
